#include <iostream>

int main(){
	std::cout << "hashvel mijin tvabanakan.\n";
	std::cout << "nermuceq 0 Qndhatelu hamar.\n";
	double tiv = 1;
	double gumar = 0;
	int qanak = 0;
	while( tiv != 0 ){
		std::cin >> tiv;
		if(tiv != 0){
		gumar+=tiv;
		++qanak;
		}
	}
	double Mt = 0;
	Mt = gumar/qanak;
	std::cout << "Mijin tvb: " << Mt << "\n";
	return 0;
}